<?php

class AdvertModel extends Model {

	public function getadvert()
	{
		//获取分类
		$M = M('advert');
		$map=array('status'=>1);
		return $M->where($map)->order('ord')->select();
	}


}

